// components/Item/Item.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data:{
      type:Object
    }
  },
  data: {

  },
  methods: {
    onChange(event){
      let data = this.properties.data
      data.state = event.detail;
      console.log(event.detail);
      this.setData({
        data
      })
      this.triggerEvent("Data",data)
    },
    onRemove(event){
      console.log(this.properties.data);
    }
  }
})
